﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucSoSanh.ascx.cs" Inherits="UserControl_ucSoSanh" %>
<%@ Register Src="TinhNangNoiBat.ascx" TagName="TinhNangNoiBat" TagPrefix="uc1" %>
<%@ Register Src="ucItemDetail.ascx" TagName="ucItemDetail" TagPrefix="uc2" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<asp:UpdatePanel ID="panel" runat="server">
    <ContentTemplate>
        <table class="style1">
            <tr>
                <td>
                    <br />
                    <br />
                    <asp:FormView ID="frmViewDetailSosanh1" runat="server">
                        <ItemTemplate>
                            <table id="hienthi">
                                <tr>
                                    <td style="width: 320px; height: 250px; text-align: center;" valign="top">
                                        <h3><asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemName")%>' ></asp:Label></h3>
                                        <br />
                                        <br />
                                        <asp:Image ID="imgItem" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/items/" + Eval("ImageURL") + "&width=200&heigh=200&dd=true" %>'
                                            ToolTip='<%# Eval("ItemName") %>' />
                                        <br />
                                        <asp:ImageButton ID="btnvote" runat="server" ImageUrl="~/images/VOTE.png" OnClick="btnvote_Click" />
                                        <asp:Label ID="lbvote" runat="server" Text='<%# Eval("Vote") %>'></asp:Label>
                                        <br />
                                        Giá bán :
                                        <asp:Label ID="lblPrice1" runat="server" Text='<%# double.Parse (Eval("BaseSellingPrice").ToString()).ToString("0,00.##") %>'
                                            CssClass="clsTotalPriceCart"></asp:Label>
                                        (Đã bao gồm VAT)
                                        <br />
                                        Số Seri: <strong>
                                            <asp:Label ID="lblCode" runat="server" Text='<%# Eval("ItemNumber") %>'></asp:Label></strong>
                                        <br />
                                        <br />
                                        <asp:ImageButton ID="addcart" runat="server" ImageUrl="~/images/addtocard.png" OnClick="addcart_Click"
                                            Width="85px" Height="23px" />
                                        &nbsp;&nbsp;
                                        <asp:Label ID="lblInfoAddCart" runat="server" Text="" ForeColor="Red"></asp:Label>
                                        <g:plusone></g:plusone>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:FormView>
                </td>
                <td style="vertical-align: top; text-align: center;">
                    <asp:DropDownList ID="cbsp" runat="server"  AutoPostBack="True"
                        OnSelectedIndexChanged="cbsp_SelectedIndexChanged">
                        <asp:ListItem>Nhập tên sản phẩm</asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    <br />
                    <asp:FormView ID="frmViewDetail1" runat="server">
                        <ItemTemplate>
                            <table id="hienthi">
                                <tr>
                                    <td style="width: 320px; height: 250px; text-align: center;" valign="top">
                                       <h3> <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemName")%>' ></asp:Label></h3>
                                        <br />
                                        <br />
                                        <asp:Image ID="imgItem" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/images/items/" + Eval("ImageURL") + "&width=200&heigh=200&dd=true" %>'
                                            ToolTip='<%# Eval("ItemName") %>' />
                                        <br />
                                        <h10><asp:ImageButton ID="btnvotess" runat="server" ImageUrl="~/images/VOTE.png" OnClick="btnvotess_Click" /></h10>
                                        <asp:Label ID="lbvotess" runat="server" Text='<%# Eval("Vote") %>'></asp:Label>
                                        <br />
                                        Giá bán :
                                        <asp:Label ID="lblPrice1" runat="server" Text='<%# double.Parse (Eval("BaseSellingPrice").ToString()).ToString("0,00.##")%>'
                                            CssClass="clsTotalPriceCart"></asp:Label>
                                        (Đã bao gồm VAT)
                                        <br />
                                        Số Seri: <strong>
                                            <asp:Label ID="lblCode" runat="server" Text='<%# Eval("ItemNumber") %>'></asp:Label></strong>
                                        <br />
                                        <br />
                                        <asp:ImageButton ID="addcartss" runat="server" ImageUrl="~/images/addtocard.png" OnClick="addcartss_Click"
                                            Width="85px" Height="23px" />
                                        &nbsp;&nbsp;
                                        <asp:Label ID="lblInfoAddCartss" runat="server" Text="" ForeColor="Red"></asp:Label>
                                        <g:plusone></g:plusone>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:FormView>
                </td>
            </tr>
            <tr>
                <td valign="top" style="width: 58%">
                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate>
                            <table width="100%" style="border: solid 1px #3399cc; font-size: 12px; font-family: Verdana;">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr style="background-color: #efeff4">
                                <td style="width: 83px; height: 50px; text-align: center;">
                                    Tính Năng Nổi Bật
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("TinhNangNoiBat").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 80px; height: 50px; text-align: left;">
                                    Giải Trí
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("GiaiTri").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Ứng Dụng và Trò Chơi
                                </td>
                                <td>
                                    <%# Server.HtmlDecode (Eval("UngDungvaTroChoi").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Nhạc Chuông
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("NhacChuong").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Bộ Nhớ
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("BoNho").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Danh Bạ, Tin Nhắn và Email
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("DanhBaTinNhanEmail").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Kết Nối Dữ Liệu
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("KetNoiDuLieu").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Thông Tin Chung
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("ThongTinChung").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 80px; height: 50px; text-align: center;">
                                    Nguồn
                                </td>
                                <td>
                                    <%# Server.HtmlDecode(Eval("Nguon").ToString())%>
                                </td>
                            </tr>
                            <tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tr> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
                <td valign="top" style="width: 42%">
                    <asp:Repeater ID="rpTinhNangSP" runat="server">
                        <HeaderTemplate>
                            <table width="100%" style="border: solid 1px #3399cc; font-size: 12px; font-family: Verdana;">
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr style="background-color: #efeff4">
                                <td style="width: 150px; height: 50px; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("TinhNangNoiBat").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("GiaiTri").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode (Eval("UngDungvaTroChoi").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("NhacChuong").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("BoNho").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 150px; height: auto; text-align: leftleft;">
                                    <%# Server.HtmlDecode(Eval("DanhBaTinNhanEmail").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("KetNoiDuLieu").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #e6e6f6">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("ThongTinChung").ToString())%>
                                </td>
                            </tr>
                            <tr style="background-color: #efeff4">
                                <td style="width: 150px; height: auto; text-align: left;">
                                    <%# Server.HtmlDecode(Eval("Nguon").ToString())%>
                                </td>
                            </tr>
                            <tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tr> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
